API - Cache\Temporary_cache_driver
system\cache.php at line 206

Class Temporary_cache_driver

Dynamic_cache_driver
└─Temporary_cache_driver
All Known Subclasses:
APC_driver Memcache_driver Xcache_driver

public abstract class Temporary_cache_driver
extends Dynamic_cache_driver

Temporary cache driver is fast in-memory cache. It usually works faster and provides automatic garbage collection, but it doesn't save data if PHP stops whatsoever. Use it for individual frequently modified variables.

Method Summary
void

inc(string id, string realm, int value)

Increments counter value

void

dec(string id, string realm, int value)

Decrements counter value

abstract array

get_info()

Returns information about memory usage if available.

protected int

get_ini_size(string name)

Gets a size limit from php.ini

Methods inherited from API - Cache\Dynamic_cache_driver
store

Method Detail

system\cache.php at line 215

inc

public void inc(string id, string realm, int value)
Increments counter value
Parameters:
id - Counter identifier
realm - Realm name
value - Increment value return int Result value

system\cache.php at line 230

dec

public void dec(string id, string realm, int value)
Decrements counter value
Parameters:
id - Counter identifier
realm - Realm name
value - Increment value return int Result value

system\cache.php at line 244

get_info

public abstract array get_info()
Returns information about memory usage if available. Possible keys: available, occupied, max. If the driver cannot provide a value, it sets it to -1.
Returns:
Associative array containing information

system\cache.php at line 251

get_ini_size

protected int get_ini_size(string name)
Gets a size limit from php.ini
Parameters:
name - INI setting name
Returns:
Number of bytes